
export function getSafeClip() {
    if (device.sdkInt >= 29) {
        let dis = threads.disposable()
        threads.start(() => {
            var w = floaty.window(
                `<frame gravity="center" bg="#ffffff">
                  <input id="input"/>
                </frame>`
            );
            ui.run(()=>{
                w.requestFocus();
                w.input.requestFocus()
                ui.post(function () {
                    const link = getClip()
                    w.disableFocus();
                    w.close();
                    w = null;
                    dis.setAndNotify(link)
                }, 20);
            })
        })
        const link2 = dis.blockedGet()
        return link2;
    }
    return getClip()
}